package com.ad2campaign.engine.db.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ad2campaign.engine.db.model.NotificationMessage;

 
 
public class NotificationMessageRowMapper implements RowMapper<NotificationMessage>{

	public NotificationMessage mapRow(ResultSet rs, int arg1)throws SQLException 
	{
 		NotificationMessage message = new NotificationMessage();
  		message.setId(rs.getInt("id"));
		message.setbId(rs.getInt("bId"));
		message.setcId(rs.getInt("cId"));
		message.setnId(rs.getInt("nId"));
		message.setTokenId(rs.getString("devicetoken"));
		message.setStatus(rs.getInt("status"));
		message.setResponse(rs.getString("response"));
 		return message;
 	}
 
	
	
}
